<div>
    <h3>toDoList</h3>
    <div>
        <input type="text" [(ngModel)]="keyWord" (keyup)="toAdd($event)" placeholder="请输入内容">
    </div>
    <hr>
    <h2>待办事项</h2>
        <ul>
            <li *ngFor="let item of doing;let key=index" [hidden]="item.status">
                <input (change)='toOver(item.status,key)' type="checkbox" [(ngModel)]="item.status"> {{item.thing}} <button (click)=toDel(key)>X</button>
            </li>
        </ul>
    <h2>已完成事项</h2>
    <ul>
        <li *ngFor="let item of doing;let key=index" [hidden]="!item.status">
            <input (change)='toOver(item.status,key)' type="checkbox" [(ngModel)]="item.status"> {{item.thing}} <button (click)=toDel(key)>X</button>
        </li>
    </ul>
</div>

